GO
ALTER TABLE [dbo].[Task]  WITH CHECK ADD  
CONSTRAINT [FK_Task_Task] FOREIGN KEY ([ParentTask_Id])
REFERENCES [dbo].[Task] ([Id])

